package com.wh.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.wh.pojo.EuiccProfile;

public interface EuiccProfileRepo extends JpaRepository<EuiccProfile, String> {
	/**
	 * 查询下载安装profile列表 
	 * @param eid
	 * @return
	 */
	@Query(value = "select * from euicc_profile c where c.eid =?1 or ((c.state = '00' or c.state is null) and (eid is null or eid = ' '))",nativeQuery = true)
	public List<EuiccProfile> findInstallByEid(String eid);
	
	/**
	 * 查询管理profile列表
	 * @param eid
	 * @return
	 */
	public List<EuiccProfile> findByEid(String eid);
	
	
}
